<div class="centered">

List of tournaments (<?php echo count($tlist)?>)
<br />
<br />

<table class="bigtable">
<thead class="ui-widget-header">
<tr>
<th>Date</th>
<th>Name</th>
<th>Country</th>
<th>City</th>
<th>Rated</th>
</tr>
</thead>
<tbody class="ui-widget-content">
<?php foreach ($tlist as $t) {?>
<tr class="<?php echo cycle('stripe1','stripe0') ?>">
	<td><?php echo $t->end_date?></td>
	<td><a class="link" href="tournament.php?id=<?php 
		echo $t->tournament_id ?>"><?php echo $t->tournament_name?></a></td>
	<td><?php echo $t->country_name?></td>
	<td><?php echo $t->city_name?></td>
	<td><?php echo $t->is_rated ? "Yes" : "No"?></td>
</tr>
<?php }?>
</tbody>
</table>
</div>